package br.org.etec.dotcao.model;

import java.util.List;

import br.org.etec.dotcao.dao.RaceDao;

public class RaceRepositoryImpl extends RepositoryImpl<Race> implements RaceRepository {

	public RaceRepositoryImpl() {
		super(Race.class);
	}

	@Override
	public List<Race> all(long specieCode) {
		RaceDao dao = (RaceDao) delegate;
		
		return dao.all(specieCode);
	}

	@Override
	public Race get(String name) {
		RaceDao dao = (RaceDao) delegate;
		
		return dao.get(name);
	}

}
